package org.csu.mypetstore.service;

import net.sf.json.JSONObject;
import org.csu.mypetstore.domain.Account;

import java.util.List;

public interface AccountService {
    Account getAccountByUsernameAndPassword(String username, String password);

    Account getAccountByUsername(String username);

    List<Account> getAccountList();

    String addAccount(Account account);

    String updateAccount(Account account);

    String updateSignon(String username, String password);

    String deleteAccount(String username);

    boolean isAdmin(String username);
//
//    JSONObject setJSON(Account account);
}
